how to use first principle method